<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                >

    <f:subview id="pessoalDadosEmbutido" rendered="#{fluxoExibicaoPessoal.exibirAlterarDadosPessoais}">
        <h:panelGrid columns="1" id="embPessDados" width="850" styleClass="center">
            <h:form id="cadUserForm" styleClass="formularioFundo">
                <h:panelGrid columns="3" styleClass="bvb-font" id="gpai">
                    <f:facet name="header">
                        <h:outputText value="#{msg.cadUserPanelGridTitle}" styleClass="formularioTitle"/>
                    </f:facet>

                    <h:outputLabel value="#{msg.login}:" id="labellogin" title="#{msg.titleLoginCadUser2}"/>
                    <p:inputText value="#{dadosPessoaisManager.usuario.login}" id="userloginCad" required="true"
                                 requiredMessage="#{msg.campoObrigatorio}" title="#{msg.titleLoginCadUser2}" label="#{msg.login}"
                                 maxlength="10" size="50" disabled="true">
                        <f:validateLength minimum="5" maximum="10"/>
                    </p:inputText>
                    <p:message for="userloginCad"/>

                    <h:outputLabel value="#{msg.nome}:" id="labelNome" title="#{msg.titleNomeCadUser2}"/>
                    <p:inputText value="#{dadosPessoaisManager.usuario.nome}" id="userNameCad" required="true"
                                 requiredMessage="#{msg.campoObrigatorio}" title="#{msg.titleNomeCadUser2}" label="#{msg.nome}"
                                 maxlength="30" size="50">
                        <f:validateLength minimum="3" maximum="30"/>
                    </p:inputText>
                    <p:message for="userNameCad"/>

                    <h:outputLabel value="#{msg.sobreNome}:" id="labelSobreNome" title="#{msg.titleSobreNomeCadUser2}"/>
                    <p:inputText value="#{dadosPessoaisManager.usuario.sobreNome}" id="userSobreNameCad" required="true"
                                 requiredMessage="#{msg.campoObrigatorio}" title="#{msg.titleSobreNomeCadUser2}" label="#{msg.sobreNome}"
                                 maxlength="30" size="50">
                        <f:validateLength minimum="3" maximum="30"/>
                    </p:inputText>
                    <p:message for="userSobreNameCad"/>

                    <h:outputLabel value="#{msg.email}:" id="labelemail" title="#{msg.titleEmailCadUser2}"/>
                    <p:inputText value="#{dadosPessoaisManager.usuario.email}" id="useremailCad" required="true"
                                 requiredMessage="#{msg.campoObrigatorio}" title="#{msg.titleEmailCadUser2}" label="#{msg.email}"
                                 maxlength="100" size="50">
                        <f:validateLength minimum="3" maximum="100"/>
                        <f:validator validatorId="emailValidador"/>
                    </p:inputText>
                    <p:message for="useremailCad"/>

                    <h:outputText value=""/>
                    <p:commandLink actionListener="#{dadosPessoaisManager.salvarDados()}" update="conteudoCentralGroup,messages"
                                   title="#{msg.titleButtonSalvarCadUser2}" id="buttonSalvar" styleClass="ui-button_link">
                        <h:graphicImage library="img" name="bt_salvar.png"/>
                    </p:commandLink>
                </h:panelGrid>
            </h:form>
        </h:panelGrid>

    </f:subview>
</ui:composition>
